<%@page import="com.wodwl.entity.Bbs"%>
<%@page import="com.wodwl.entity.Blog"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="com.wodwl.entity.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<%@include file="../templete/head.jsp"  %>
	<style type="text/css">
		
		.mainRight .btn{
			float: right;
			margin-right: 5px;
		}
		
		.content ul{
			list-style-type: none;
			display: block;
		}
		.content ul li{
			height: 120px;
		}
		.bar span{
			display:inline-block;
			margin-right: 10px;
		}
		.content .title{
			font-size: 24px;
		}
		
		
		.content .con{
			clear:both;
			padding:7px 0 5px 0;
			height: 50px;
			width: 80%;
			overflow: hidden;
		}
		.content .op{
			float: right;
		}
	</style>
</head>
<body >
	<%pageContext.setAttribute("linkType", "7");%>
	<%@include file="../templete/banner.jsp"  %>
	<%List<Bbs> bbss=(List<Bbs>) request.getAttribute("bbss");%>
	
	
	<div class="mainRight">
		<div class="mainRightBar">
			<div class="title">帖子列表</div>
			<div class="write_bbs_btn btn" >发帖</div>
		</div>
		<div class="content">
			<ul>
				<%
					if(bbss!=null)
						for (int i = 0; i < bbss.size(); i++) {
							Bbs item = bbss.get(i);
				%>
					<li>
							<div class="bar">
								<span class="title left">
									<a class="cBlue fB" href="/blog/blog_show.do?username=<%=user.getUsername()%>&bid=<%=item.getBid()%>"><%=item.getTitle() %></a>
								</span>
								<span class="right">
									作者：<a href="/user/info_display.do?username=<%=user.getUsername()%>&request_username=<%=item.getUsername()%>">
									<%=item.getUsername()%></a>
								</span>
								<span class="right">
									<%=sdf.format(item.getCreate_time()) %>
								</span>
								
							</div>
							
							<div class="con">
								<%=item.getContent() %>
							</div>
						
							<div class="op">
								<a href="/bbs/bbs_show.do?bid=<%=item.getBid()%>&path=<%=item.getPath() %>">查看详细</a>
							</div>
					</li>
				<%}%>
					
			</ul>
		</div>

		<p class=" divPage">
			<span class="cur">1</span> <a href="#" class="item">2</a> <a
				href="#" class="item">3</a> <a class="item" href="#">下一页</a>
		</p>
	</div>
</div>

<%@include file="../templete/footer.jsp"  %>
	
<script type="text/javascript">
	$(document).ready(function(){
		$(".write_bbs_btn").button();
		$(".write_bbs_btn").click(function(){
			window.location.href="/jsp/bbs/bbs_add.jsp";
		});
		
	});
</script>
</body>
</html>